Skip to content

ci: map the pre-0.3.0 layout in risk-rules - #3408

Merged
Birfy merged 1 commit into
mainfrom
dev/3393-risk-rules-old-layout
Nov 27, 2026
Merged

Birfy merged 1 commit into
mainfrom
dev/3393-risk-rules-old-layout

Conversation

@Birfy

@Birfy Birfy commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

What

Four mappings in .github/agent/risk-rules.json, nothing else:

  • core/**, ds-bot/**, patches/** -> T3: the old home of the vendored engine, and a patch series rewrites that tree
  • plugins/** -> T2
  • changelog.d/** -> T0
  • core/client.js -> generatedPaths, next to its new-layout twin

Old-layout diffs used to fall through to unknownPathTier=T2. That is why #3353 and #3358 were reported T2 while they rewrite the vendor tree.

Effect (engine 34aa484d, base 68e2322c)

PR before after
#3382 T3 633L/7F T3 633L/7F (unchanged; the exec-pattern slice is separate)
#3353 T2 105L/6F T3 105L/6F
#3358 T2 117L/5F T3 117L/5F
#3112 T3 47014L/194F, basis T2 T3 35398L/193F, basis T3 (core/client.js excluded from the line count)

Path sweep over the main tree plus the file lists of those PRs (2382 paths): 175 paths move, all upward or re-homed - T1->T3 72, T2->T3 90, T0->T3 10, T1->T2 3. changelog.d/** matches no path in the current tree; it only guards a future old-layout diff.

Scope

Only these four mappings. The rest of the file keeps its formatting: no JSON re-serialisation, no version bump. .github/** is T3 under the rules themselves, so the risk label on this PR is expected to be T3.

Verification (local only, no CI reading claimed)

On the exact head 2eae9a225a5f785d2ffe58f87b8fbb9063cd1dd9, in a clean worktree: node --test .github/scripts/*.test.mjs -> 61/61 pass, 0 fail; JSON parses; git diff --stat 68e2322c..head -> 1 file, 8 insertions, 4 deletions. CI has not run at the time of writing.

Related #3393

@github-actions github-actions Bot added the risk:T3 Risk tier T3 (needs a human approval), set by the controller from the diff label Nov 27, 2026
@Birfy
Birfy force-pushed the dev/3393-risk-rules-old-layout branch from afbfdc3 to 6d3ab2a Compare November 27, 2026 05:46
@Birfy

Birfy commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator Author

Lead review — head 6d3ab2a90de977cec1f4f0ea683e21828fcc770e

Scope, single slice: .github/agent/risk-rules.json only, +9/−5 against base 6ce5a915. No executable logic, no network access, no repository writes; the file only reclassifies paths and lists generated files.

What changes:

  • T3 paths gain core/**, ds-bot/**, patches/** — the pre-0.3.0 layout that previously fell through to unknownPathTier T2.
  • T2 paths gain plugins/**; T0 gains changelog.d/**.
  • generatedPaths gains core/client.js and ds-bot/client.js, the same npm run build output as the vendored copy, so a patch to either keeps the size count honest.
  • generatedPathsNote is rewritten to say the old layout carried that build output twice.

One fact recorded for later readers: none of core/, ds-bot/, patches/, plugins/, changelog.d/ exists on main after 0.3.0, so this mapping only affects replaying pre-0.3.0 diffs (for example #3353 and #3358). It changes no verdict on a diff against today's tree.

Evidence at this exact head — a new commit voids all of it:

  • tree 83d633f44b2ef6a7b339453830d2ea18f4d6ca24; rules blob 11459922…, 4599 B, sha256 dcaeadb50a006c5bf219defb5c4fdfd5966cb0a2f1941daef68198004b7230ab; JSON parses, version is still 2, top-level key order unchanged.
  • Local green, 12 test files: node --test .github/scripts/*.test.mjs → 96 tests, 96 pass, 0 fail. I re-ran this myself in a detached worktree at this head; QA reported the same numbers independently.
  • CI green, separate from the local run: FlyBot required checks completed success at 2026-11-27T05:51:22Z for this head. That job fails unless all seven suites report success, so this is the aggregate gate on this tree. The base of that run is 6ce5a915, one commit behind main: ci: add an advisory merge-decision script for one head #3407 landed as 4f280f0f before this review.

Landed-tree evidence is the merge queue round, not either result above; if that round fails, this record is void.

Decision: enqueue with expected_head_sha = 6d3ab2a90de977cec1f4f0ea683e21828fcc770e. Risk tier (risk:T3) is advisory only under the 2026-11-26 instruction; the merge decision is mine and is recorded here with the head it applies to.

Refs #3393

@Birfy
Birfy added this pull request to the merge queue Nov 27, 2026
Merged via the queue into main with commit cfde852 Nov 27, 2026
18 checks passed
@Birfy
Birfy deleted the dev/3393-risk-rules-old-layout branch November 27, 2026 05:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk:T3 Risk tier T3 (needs a human approval), set by the controller from the diff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant